<?php
class share{

    public function post(){
        echo<<<EOT

<!-- Baidu Button BEGIN -->
<div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare">
    <a class="bds_qzone"></a>
    <a class="bds_tsina"></a>
    <a class="bds_tqq"></a>
    <a class="bds_renren"></a>
    <a class="bds_t163"></a>
    <a class="bds_fbook"></a>
    <a class="bds_twi"></a>
    <a class="bds_tsohu"></a>
    <a class="bds_douban"></a>
    <a class="bds_kaixin001"></a>
    <a class="bds_hi"></a>
    <a class="bds_tqf"></a>
</div>
<!-- Baidu Button END -->

EOT;
    }


    public function footer(){
        echo<<<EOT

<!-- Baidu js BEGIN -->
<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=1146008" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
</script>
<!-- Baidu js END -->

EOT;

    }

    public function version(){
        return array(
            'version' => '1.0',
            'pid' => 'share',
            'description' => '百度分享',
            'home' => 'http://blog.com',
            'author' => '幽灵传说',
            'status' => 1
        );
    }
}